package entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

/**
 * The type Ur.
 */
public class Ur extends Common implements Serializable {
    private static final long serialVersionUID = -55025820833601661L;
    @TableId(type = IdType.ID_WORKER_STR)
    private String id;
    @TableField(value = "userId")
    private String userId;
    @TableField(value = "roleId")
    private String roleId;

    /**
     * To string string.
     *
     * @return the string
     */
    @Override
    public String toString() {
        return "Ur{" +
                "id='" + id + '\'' +
                ", userId='" + userId + '\'' +
                ", roleId='" + roleId + '\'' +
                '}';
    }

    /**
     * Gets id.
     *
     * @return the id
     * @author overlook
     * @date 2022 -04-16 20:32:48
     */
    public String getId() {
        return id;
    }

    /**
     * Sets id.
     *
     * @param id the id
     * @author overlook
     * @date 2022 -04-16 20:32:48
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * Gets user id.
     *
     * @return the user id
     * @author overlook
     * @date 2022 -04-16 20:32:48
     */
    public String getUserId() {
        return userId;
    }

    /**
     * Sets user id.
     *
     * @param userId the user id
     * @author overlook
     * @date 2022 -04-16 20:32:48
     */
    public void setUserId(String userId) {
        this.userId = userId;
    }

    /**
     * Gets role id.
     *
     * @return the role id
     * @author overlook
     * @date 2022 -04-16 20:32:48
     */
    public String getRoleId() {
        return roleId;
    }

    /**
     * Sets role id.
     *
     * @param roleId the role id
     * @author overlook
     * @date 2022 -04-16 20:32:48
     */
    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    /**
     * Instantiates a new Ur.
     *
     * @author overlook
     * @date 2022 -04-16 20:32:48
     */
    public Ur() {
    }

    /**
     * Instantiates a new Ur.
     *
     * @param id     the id
     * @param userId the user id
     * @param roleId the role id
     * @author overlook
     * @date 2022 -04-16 20:32:48
     */
    public Ur(String id, String userId, String roleId) {
        this.id = id;
        this.userId = userId;
        this.roleId = roleId;
    }
}
